package com.hdmp.tool.exception;

import lombok.Data;

/**
 * @author BigFan
 * @create 2018/11/14 3:40 PM
 */
@Data
public class BaseException extends RuntimeException {
    private static final long serialVersionUID = 1l;
    private String msg;
    private int code = 500;

    public BaseException(String msg) {
        super(msg);
        this.msg = msg;
    }

    public BaseException(String msg, Throwable e) {
        super(msg, e);
        this.msg = msg;
    }

    public BaseException(String msg, int code, Throwable e) {
        super(msg, e);
        this.msg = msg;
        this.code = code;
    }

}
